package com.chb.builder;

/**
 * @author chihb
 * @create-time 2024/10/23 9:49
 * @description
 */
public class Director {
    private Builder builder;
    public Director(Builder builder)
    {
        this.builder = builder;
    }
    public Car construct()
    {
        builder.buildEngine();
        builder.buildWheel();
        builder.buildWindow();
        return builder.CreateCar();
    }
}
